<template>
  <div id="app">
    <router-view v-if="isRouterAlive"></router-view>
  </div>
</template>

<script>
export default {
  name: 'App',
  provide() {
    return{
      reload: this.reload
    }
  },
  data() {
    return {
      isRouterAlive: true
    }
  },
  methods: {
    reload() {
      // console.log('reload');
      this.isRouterAlive = false;
      this.$nextTick(function () {
        this.isRouterAlive = true;
      })
    }
  }
}
</script>

<style>
* {
  margin: 0;
  padding: 0;
  font-size: 14px;
  /* color: #333; */
  /*letter-spacing: 0.35px;*/
  font-family: Microsoft YaHei, serif;
}

a, a:hover, a:focus {
  text-decoration: none;
}

.icon_top {
  vertical-align: bottom;
}

.icon_6_l {
  margin-left: 6px;
}

ul, ol {
  margin: 0;
}

ul, li {
  list-style: none;
}

html, body, #app {
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

canvas {
  height: 100%;
  width: 100%;
}
</style>
